package com.nami.store.api.service;

import com.nami.store.api.request.grpmember.GrpMemberAddReq;
import com.nami.store.api.response.groupmember.GroupMemberDTO;

import java.util.List;
import java.util.Map;

/**
 * 描述：
 *
 * @Author: lbc
 * @Date: 2023-08-17 14:05
 * @email: 594599620@qq.com
 * @Description: keep coding
 */
public interface RemoteGroupMemberService {

    /**
     * get all group member
     *
     * @param groupId
     * @return
     */
    List<GroupMemberDTO> getGroupMembers(String groupId);

    /**
     * 获取本群某成员
     *
     * @param groupId
     * @param userId
     * @return
     */
    GroupMemberDTO getGroupMember(String groupId, String userId);

    /**
     * 除了自己得群成员
     *
     * @param groupId
     * @param userId
     * @return
     */
    List<GroupMemberDTO> getGroupMembersExcludeMe(String groupId, String userId);

    /**
     * add
     *
     * @param addRequests
     * @return
     */
    boolean batchSave(List<GrpMemberAddReq> addRequests);

    /**
     *
     * @param groupId
     * @param userIds
     * @return
     */
    List<GroupMemberDTO> getGrpMembsByGrpIdAndUserIds(String groupId, List<String> userIds);


    Map<String, GroupMemberDTO> getGrpMembsByUserIds(String grpId, List<String> userIds);
}
